//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.qst.crop.controller;

import com.qst.crop.entity.IOTDeviceMessage;
import com.qst.crop.service.IOTDeviceMessageService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(
        tags = {"IOT平台参数配置接口"}
)
@RestController
@RequestMapping({"/iot"})
@CrossOrigin
public class IOTDeviceMessageController {
    @Autowired
    IOTDeviceMessageService service;

    public IOTDeviceMessageController() {
    }

    @GetMapping({"/message/{code}"})
    public IOTDeviceMessage getByCode(@PathVariable("code") String code) {
        IOTDeviceMessage message = this.service.getByCode(code);
        return message;
    }
}
